package net.neptech.model.schedule;

import jakarta.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import net.neptech.utils.SnowflakeIdGenerator;
import org.hibernate.annotations.GenericGenerator;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
/**
 * @Author HuangZhengmin
 * @desc  部门班次关联表实体类
 * @Date 2025/8/12 17:14
 * @Version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "sche_dept_shift")
public class ScheDeptShift implements Serializable{
    @Serial
    private static final long serialVersionUID = 1L;

  @Id
  @GenericGenerator(name = "snowflake", type = SnowflakeIdGenerator.class)
  @GeneratedValue(generator = "snowflake")
  @Column(name = "dept_shift_id", nullable = false)
  private Long deptShiftId; // ID

  @Column(name = "dept_id")
  private Long deptId; // 部门ID

  @Column(name = "shift_id")
  private Long shiftId; // 班次ID

  @Column(name = "create_time")
  private Date createTime; // 创建时间
}
